<?php if (!defined('BASEPATH')) exit('No direct script access allowed');

class Course extends CI_Controller {

    function __construct() {
        parent::__construct();
        $this->load->model('course_model');
    }

    function index() {
        $data['tab_courses'] = $this->course_model->get_all_courses();
        $this->ingesup->render('courses', $data);
    }

    function course_infos($course_id) {
        $data['course_teacher_fistname'] = $this->course_model->get_teacher_firstname($user_id);
        $data['course_teacher_lastname'] = $this->course_model->get_teacher_lastname($user_id);
        $data['course_name'] = $this->course_model->get_teacher_lastname($user_id);
        $this->ingesup->render('courses_infos', $data);
    }
}